#ifndef CAMPAIGNVIEWDELEGATE_H
#define CAMPAIGNVIEWDELEGATE_H



#include <QItemDelegate>



class CampaignViewDelegate : public QItemDelegate
{
    Q_OBJECT

public:

    CampaignViewDelegate(QObject *parent = 0);

    virtual QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    virtual void setEditorData(QWidget *editor, const QModelIndex &index) const;
    virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;

protected:

    QVariant itemData(const QModelIndex& baseIndex, const int& type, const int& role = Qt::DisplayRole) const;


};

#endif // CAMPAIGNVIEWDELEGATE_H
